$OpenBSD: patch-libgo_Makefile_in,v 1.3 2014/05/25 21:45:39 pascal Exp $
--- libgo/Makefile.in.orig	Wed Nov 27 23:11:08 2013
+++ libgo/Makefile.in	Thu May 22 20:04:21 2014
@@ -1998,13 +1998,14 @@ libgo_la_LIBADD = \
 libgobegin_a_SOURCES = \
 	runtime/go-main.c
 
+include $(top_srcdir)/../libversions
 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
 AM_GOCFLAGS = $(STRINGOPS_FLAG)
 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
 	$(AM_GOCFLAGS) $(GOCFLAGS)
 
-GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
+GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) $(LIBgo_LTVERSION) \
 	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
 
 
